﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for SortObjectsDepartments
/// </summary>
public class SortObjectsDepartments : IComparer<Department>
{
    public int Compare(Department dep1, Department dep2)
    {
        return (dep1.DepID < dep2.DepID) ? 1 : ((dep1.DepID > dep2.DepID) ? -1 : 0);
    }
}